package com.liner.homework.second.person;

public class Person {
    String name;
    int age;
    String address;

    public Person(String name, int age, String address) {
        this.name = name;
        this.age = age;
        this.address = address;
    }

    public void eat(){
        System.out.println(name + "eat...");
    }

    public void sleep(){
        System.out.println(name + "sleep...");

    }

    public void sayHi(){
        System.out.println("我是" + name + "已经" + age + "岁了,家住" + address);

    }
}
